import Layout from '@/layout'
 // 财务管理
//  修改：财务管理
const financialRouter = {
  path: '/financial',
  component: Layout,
  redirect: 'noRedirect',
  name: 'Financial',
  meta: {
    title: '财务管理',
    icon: 'money'
  },
  children: [
    {
      path: 'reconciliation',
      component: () => import('@/views/financial/reconciliation/index'),
      name: 'Reconciliation',
      meta: { title: '对账明细', icon: '' }
    },
    {
      path: 'claim',
      component: () => import('@/views/financial/claim/index'),
      name: 'Claim',
      meta: { title:'理赔记录' },
    },
    {
      path: 'detail/:id?',
      name:'Detail',
      hidden: true,
      component: () => import('@/views/financial/detail'),
      meta: { 
        title:'理赔详情',
        noCache: true, activeMenu: `/financial/claim`,
      }
    },
    {
      path: 'invoice',
      component: () => import('@/views/financial/invoice/index'),
      name: 'Invoice',
      meta: { title: '发票列表', icon: '' },
    },
    {
      path: 'account',
      component: () => import('@/views/financial/account'),
      name: 'Account',
      meta: { title: '承运单电子账户', icon: '' },
    },
    {
      path: 'financialCreat/:id?',
      name: 'FinancialCreat',
      hidden: true,
      component: () => import('@/views/financial/edit'),
      meta: {
        title: '添加',
        noCache: true, activeMenu: `/financial/account`,
      }
    },
  ]
}

export default financialRouter
